package com.ytzlkaoshi.test4.service.impl;

import com.ytzlkaoshi.test4.mapper.BugsprojectMapper;
import com.ytzlkaoshi.test4.pojo.Bugsproject;
import com.ytzlkaoshi.test4.service.BugsprojectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Wrapper;
import java.util.List;
@Service
public class BugsprojectServiceimpl implements BugsprojectService {
    @Resource
    private BugsprojectMapper bugsprojectMapper;

    @Override
    public List<Bugsproject> selectAll(Wrapper wrapper) {
        return bugsprojectMapper.selectList((com.baomidou.mybatisplus.core.conditions.Wrapper<Bugsproject>) wrapper);
    }

    @Override
    public Bugsproject selectOne(Wrapper wrapper) {
        return bugsprojectMapper.selectOne((com.baomidou.mybatisplus.core.conditions.Wrapper<Bugsproject>) wrapper);
    }

    @Override
    public int insert(Bugsproject bugsproject) {
        return bugsprojectMapper.insert(bugsproject);
    }

    @Override
    public int update(Bugsproject bugsproject) {
        return bugsprojectMapper.updateById(bugsproject);
    }

    @Override
    public int delete(int id) {
        return bugsprojectMapper.deleteById(id);
    }
}
